package com.pine.common.beans.pineframework.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户当前信息响应体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-15
 */
@Data
@Schema(title = "SysUserCurrentInfoResponse", description = "用户当前信息响应体")
public class SysUserCurrentInfoResponse implements Serializable {
    @Serial
    private static final long serialVersionUID = 5732651179857369915L;

    /**
     * 用户ID
     */
    @Schema(title = "id", description = "用户ID")
    private Long id;
    /**
     * 用户账号
     */
    @Schema(title = "loginAccount", description = "用户账号")
    private String loginAccount;
    /**
     * 用户名称
     */
    @Schema(title = "username", description = "用户名称")
    private String username;
    /**
     * 头像
     */
    @Schema(title = "avatar", description = "头像")
    private String avatar;

    /**
     * 用户角色编码集合
     */
    @Schema(title = "roles", description = "用户角色编码集合")
    private List<String> roles;

    /**
     * 用户权限编码集合
     */
    @Schema(title = "permissions", description = "用户权限编码集合")
    private List<String> permissions;
}
